package com.hxc.service.impl;

import com.hxc.dao.CartigyMapper;
import com.hxc.pojo.Cartiy;
import com.hxc.service.CartigyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CartigyServiceImpl implements CartigyService{

    @Autowired
    private CartigyMapper cartigyMapper;

    @Override
    public List<Cartiy> findAll() {
        return cartigyMapper.findAll();
    }

    @Override
    public void delete(Integer id) {
        cartigyMapper.delete(id);
    }

    @Override
    public void save(Cartiy cartiy) {
        cartigyMapper.save(cartiy);
    }
}
